#include "observablebool.h"

ObservableBool::ObservableBool(QObject *parent)
    : QObject{parent}
{
    this->is_door_open = false;

}

void ObservableBool::setValue(bool newValue) {
    if (is_door_open != newValue) {
        is_door_open = newValue;
        emit valueChanged(is_door_open);
    }
}
bool ObservableBool::getValue(){

    return this->is_door_open;
};
